projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
670f6b6
)
(widget-sexp-validate): Allow whitespace after expression.
author
Lars Hansen
<larsh@soem.dk>
Sun, 8 Aug 2004 19:35:15 +0000
(19:35 +0000)
committer
Lars Hansen
<larsh@soem.dk>
Sun, 8 Aug 2004 19:35:15 +0000
(19:35 +0000)
lisp/wid-edit.el
patch
|
blob
|
history
diff --git
a/lisp/wid-edit.el
b/lisp/wid-edit.el
index 8029fb3d5a6eae43ed9d9b41962b2ccf837d1c6d..05ef4b95658831b0956d90fc62f5a12982ac34ab 100644
(file)
--- a/
lisp/wid-edit.el
+++ b/
lisp/wid-edit.el
@@
-3153,6
+3153,8
@@
It will read a directory name from the minibuffer when invoked."
(setq err "Empty sexp -- use `nil'?")
(unless (widget-apply widget :match (read (current-buffer)))
(setq err (widget-get widget :type-error))))
+ ;; Allow whitespace after expression.
+ (skip-syntax-forward "\\s-")
(if (and (not (eobp))
(not err))
(setq err (format "Junk at end of expression: %s"